home *** CD-ROM | disk | FTP | other *** search
- Path: news.th-darmstadt.de!news
- From: Enno Sandner <enno@intellektik.informatik.th-darmstadt.de>
- Newsgroups: comp.lang.c++
- Subject: Re: Q: Template forward declare.
- Date: Thu, 22 Feb 1996 09:38:10 +0100
- Organization: Fachbereich Informatik, TH Darmstadt
- Message-ID: <312C2B72.794BDF32@intellektik.informatik.th-darmstadt.de>
- References: <312BB621.41C6@fumin.nintendo.co.jp>
- NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3 sun4m)
-
- Giles Goddard wrote:
- >
- > Help.
- > Does anybody know how to forward declare a class template?
- > something equivelent to:
- >
- > class Foo;
- >
-
- To declare for instance a generic class Foo<T> you can write
-
- template<class T> class Foo;
-
-
- Enno
-